#ifndef GCONFITEM_H
#define GCONFITEM_H

#include <QtCore/QObject>
#include <QtCore/QVariant>

class GConfItem : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString key READ key WRITE setKey NOTIFY keyChanged)
    Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
public:
    explicit GConfItem(QObject *parent = 0);

    const QString &key() const;
    const QVariant &value() const;

public slots:
    void setKey(const QString &key);
    void setValue(const QVariant &value);

signals:
    void keyChanged(const QString &key);
    void valueChanged(const QVariant &value);

private:
    class Private;
    Private *d;
};

#endif // GCONFITEM_H
